expect.extend({
    toBeDivisibleBy(received,argument){
        const pass=received%argument===0;
        if(pass){
            return {
                message(){return `expected ${received} to be divisiable by ${argument}`},
                pass
            }
        }else{
            return {
                message(){return `expected ${received} not to be divisiable by ${argument}`},
                pass
            }
        }
    }
});

test('even',()=>{
    expect(10).toBeDivisibleBy(2);
});

test('odd',()=>{
    expect(10).toBeDivisibleBy(3);
});